package Test;

public class D {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() -> {
            System.out.println("Thread 1 start");
            try {
                Thread.sleep(0);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("Thread 1 end");
        });

        Thread t2 = new Thread(() -> {
            System.out.println("Thread 2 start");
            System.out.println("Thread 2 end");
        });

        t1.start();
        t2.start();
    }
}
